<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div ng-app="myApp">
    <runoob-directive></runoob-directive>
  </div>

  <script src="./static/angular.min.js"></script>

  <script>
    var app = angular.module("myApp", []);
    app.directive("runoobDirective", function () {
      return {
        template: "<h1>自定义指令!</h1>"
      };
    });
  </script>
</body>

</html>